package com.project.bean;

import java.time.LocalDate;

/**
 * 服务订单实体类
 */
public class ServeOrderBean {
    /**订单编号*/
    private int id;
    /**订单预约时间*/
    private String time;
    /**订单状态*/
    private String state="未完成";
    /**订单下单时间*/
    private LocalDate createDate=LocalDate.now();
    /**订单收货人姓名*/
    private String name;
    /**订单收货人电话*/
    private String tel;
    /**订单收货人地址*/
    private String address;
    /**下单人*/
    private UserBean user;
    /**服务订单评分*/
    private String score;
    /**服务实体类*/
    private ServeBean serve;
    /**店员实体类*/
    private EmployeeBean employee;

    public ServeOrderBean() {
    }

    public ServeOrderBean(String time, String name, String tel, String address, int userId, int serveId) {
        this.time = time;
        this.name = name;
        this.tel = tel;
        this.address = address;
        this.user = new UserBean();
        this.user.setId(userId);
        this.serve = new ServeBean();
        this.serve.setId(serveId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public ServeBean getServe() {
        return serve;
    }

    public void setServe(ServeBean serve) {
        this.serve = serve;
    }

    public EmployeeBean getEmployee() {
        return employee;
    }

    public void setEmployee(EmployeeBean employee) {
        this.employee = employee;
    }

    @Override
    public String toString() {
        return "ServeOrderBean{" +
                "id=" + id +
                ", time='" + time + '\'' +
                ", state='" + state + '\'' +
                ", createDate=" + createDate +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                ", user=" + user +
                ", score='" + score + '\'' +
                ", serve=" + serve +
                ", employee=" + employee +
                '}'+"\n";
    }
}
